﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

/// <summary>
/// Summary description for User
/// </summary>
public class User
{
    private int user_id;

	public int User_id
	{
		get { return user_id;}
		set { user_id = value;}
	}
    private DateTime date_added;

    public DateTime Date_added
    {
        get { return date_added; }
        set { date_added = value; }
    }
    
    private int user_group_id;

    public int User_group_id
    {
        get { return user_group_id; }
        set { user_group_id = value; }
    }
    
    private string  phone;

    public string  Phone
    {
        get { return phone; }
        set { phone = value; }
    }
    
    private string address;

    public string Address
    {
        get { return address; }
        set { address = value; }
    }
    
    private bool sex;

    public bool Sex
    {
        get { return sex; }
        set { sex = value; }
    }
    
    private string email;

    public string Email
    {
        get { return email; }
        set { email = value; }
    }
    
    private DateTime birthday;

    public DateTime Birthday
    {
        get { return birthday; }
        set { birthday = value; }
    }
    
    private string fullname;

    public string FullName
    {
        get { return fullname; }
        set { fullname = value; }
    }
    
    private string password;

    public string Password
    {
        get { return password; }
        set { password = value; }
    }
    
    private string user_name;

    public string User_name
    {
        get { return user_name; }
        set { user_name = value; }
    }
    
	
    
    public User()
	{
        this.user_id = 0;
        this.user_name = "";
        this.password = "";
        this.fullname = "";
        this.birthday = DateTime.Now;
        this.email = "";
        this.sex = false;
        this.address = "";
        this.phone = "";
        this.user_group_id = 2;
        this.date_added = DateTime.Now;
	}
    public User(int user_id, string user_name, string password, string fullname, DateTime birthday, string email, bool sex, string address, string phone, int user_group_id, DateTime date_added)
    {
        this.user_id = user_id;
        this.user_name = user_name;
        this.password = password;
        this.fullname = fullname;
        this.birthday = birthday;
        this.email = email;
        this.sex = sex;
        this.address = address;
        this.phone = phone;
        this.user_group_id = user_group_id;
        this.date_added = date_added;
    }
}